home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / falcon / programm.ing / nt_dsp1.lzh / NT_DSP1.MSA / FNTNS / EXP2.HLP < prev    next >
Text File  |  1989-01-24  |  783b  |  25 lines

  1.          Name: EXP2.ASM
  2.          Type: Assembler Macro
  3.       Version: 1.0
  4.   Last Change: 26-Jan-87
  5.                                                                    
  6.  This macro will take the exponential of a number base 2.
  7.  
  8.       2**(x) = .1713425 x*x + .6674432 x + .9979554
  9.  
  10.  This polynomial will give approximately 8 significant bits of accuracy.
  11.  This is valid for -1<= x <=0.
  12.  
  13.  The input value is put into x0, the output value is returned in register
  14.  A.  Register R1 initially points to the coefficients in y memory in the
  15.  order:a1,a2,a0.
  16.  
  17.        R1
  18.        |
  19.        v
  20.  y:.6674432,.1713425,.9979554
  21.        a1       a2       a0
  22.  
  23.  Benchmarks for this macro is 4 cycles, 4 instructions.
  24.  The library program EXP2T demonstrates how to use the EXP2 macro.
  25.